import request from './request'

// 登录
export const loginAPI = (data) => {
  return request({
    url: '/api/user/login',
    method: 'post',
    data
  })
}

// 获取区号
export const getAreaCodeAPI = (data) => {
  return request({
    url: '/api/user/getAreaCode',
    method: 'post',
    data
  })
}

// 获取国家
export const getCountryAPI = (data) => {
  return request({
    url: '/api/user/getCountry',
    method: 'post',
    data
  })
}

// 录入
export const addUserAPI = (data) => {
  return request({
    url: '/api/user/addMobile',
    method: 'post',
    data
  })
}

// 手机号查询
export const getUserAPI = (data) => {
  return request({
    url: '/api/user/selectMobile',
    method: 'post',
    data
  })
}